*** Settings ***
Library           OperatingSystem
Library           Selenium2Library

*** Test Cases ***
erp_login
    Open Browser    http://erp.test.jimuitech.com/#/login    chrome
    Maximize Browser Window
    Input Text    xpath=//*[@id="app"]/div/div[2]/div/form/div[1]/div/div/input    kap1chn
    Input Text    xpath=//*[@id="app"]/div/div[2]/div/form/div[2]/div/div/input    1234qwer
    Click button    xpath=//*[@id="app"]/div/div[2]/div/form/div[3]/div/button
    sleep    5
    click element    xpath=//div[@id='app']/div/div[3]/div/div[2]/div/div/div/div
    sleep    8

erp_logout_close_browser
    mouse up    css=#app > div > header > ul > li:nth-child(1)
    sleep    3
    click element    css=body > div.el-menu--horizontal > ul > li:nth-child(3)
    close browser
